package com.stylefeng.guns.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.common.persistence.model.Dict;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 字典表 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2017-07-11
 */
public interface DictMapper extends BaseMapper<Dict> {

    Dict selectByName(String name);
    Dict selectByNameAndPid(String name);
    Dict selectByNameNotTop(String name);
    List<Dict> selectByPcode(String pcode);
    Dict selectByCode(String code);

    /**
     * 查询列表
     * @param pid
     * @return
     */
    List<Dict> selectListByPid(String pid);
}